/* 
循环数组，给数组每一项都新增字段
*/
const arr = [
    { name: "张三", age: "13" },
    { name: "李四", age: "14" },
];

arr.forEach((v) => {v.checked = false;v.isPerson = true} );

console.log("arr", arr);
//console
// arr [
//     { name: '张三', age: '13', checked: false },
//     { name: '李四', age: '14', checked: false }
//   ]
